package pers.zh.parking.service;

import pers.zh.parking.po.Evaluation;
import pers.zh.parking.po.ParkingRecord;

import java.util.List;

public interface IParkRecordService {

    boolean insertRecord(ParkingRecord record);

    boolean hasReservedCurLot(Integer lotId, Integer userId);

    boolean cancelOrder(Integer recordId);

    List<ParkingRecord> getReservations(long userId, int status);

    boolean hasReservedOther(Integer userId);

    boolean park(Integer recordId, String carNo);

    boolean pay(Integer recordId);

    boolean eval(Evaluation evaluation);

    List<ParkingRecord> getEvals(Integer userId);
}
